home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2002 March
/
PCWorld_2002-03_cd.bin
/
Software
/
TemaCD
/
xteq
/
setup.exe
/
{app}
/
plugins
/
XQ Control Panel Hide Sys.xpl
< prev
next >
Wrap
Text File
|
2000-11-13
|
2KB
|
72 lines
"FILE"="Xteq Systems X-Setup Plugin 6.0"
"TYPE"="6"
"COUNT"="4"
"UIPATH"="Appearance\Control Panel\Other Settings"
"NAME"="Visible pages in "System""
"OSVERSION"="10101"
"LANGUAGE"="VBScript"
"VERSION"="1.05"
"TEXT 1"="Show "Device Manager" page in System control"
"TEXT 2"="Show "Hardware Profiles" page in System control"
"TEXT 3"="Show "File System" button in System control"
"TEXT 4"="Show "Virtual Memory" button in System control"
"DESCRIPTION 1"="To show a page inside the "System" control, activate it. To hide it, deactivate it."
"DESCRIPTION 2"="These settings are for Windows 9x only."
"AUTHOR"="Xteq Systems"
"CONTACTURL"="http://www.xteq.com"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
"COMMENT 1"=" "
"COMMENT 2"="Thanks for CptSiskoX for the settings!"
'All DWORD. 1 = don't show, anything else =show
sV1="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\NoDevMgrPage"
sV2="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\NoConfigPage"
sV3="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\NoFileSysPage"
sV4="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\NoVirtMemPage"
Sub Plugin_Initialize
i=RegReadValue(sV1)
if i<>1 then SetUIElement 1,true
i=RegReadValue(sV2)
if i<>1 then SetUIElement 2,true
i=RegReadValue(sV3)
if i<>1 then SetUIElement 3,true
i=RegReadValue(sV4)
if i<>1 then SetUIElement 4,true
End Sub
Sub Plugin_CheckData(ElementIndex)
End Sub
Sub Plugin_Apply(ElementIndex,ElementSubIndex)
Call WriteIt(1,sV1)
Call WriteIt(2,sV2)
Call WriteIt(3,sV3)
Call WriteIt(4,sV4)
Call IndicateSettingChange()
End Sub
Sub WriteIt(ITM,VAL)
b=GetUIElement(ITM)
if b=false then
call RegWriteValue(VAL,1,2)
else
chk=RegReadValue(VAL)
if IsEmpty(chk)=false then
Call RegDeleteValue(VAL)
end if
end if
end sub
Sub Plugin_Terminate
End Sub